package com.zhiche.lisa.lspm.dao.model.fleet;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 车队证照附件
 * </p>
 *
 * @author fanguangji
 * @since 2018-12-19
 */
@TableName("lisa_fleet_license_attach")
public class FleetLicenseAttach extends Model<FleetLicenseAttach> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 车队id
     */
	@TableField("fleet_id")
	private Long fleetId;
    /**
     * 附件类型：01-身份证；02-银行卡
     */
	@TableField("attach_type")
	private String attachType;
    /**
     * 附件key
     */
	@TableField("attach_key")
	private String attachKey;
    /**
     * 附件类型：01-正面；02-反面
     */
	@TableField("attach_style")
	private String attachStyle;
    /**
     * 附件文件名称
     */
	@TableField("attach_name")
	private String attachName;
    /**
     * 创建人
     */
	private String creator;
    /**
     * 租户ID
     */
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 删除标识，默认0，若删除，置为1'
     */
	@TableField("is_delete")
	private Integer isDelete;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 更新时间
     */
	@TableField("gmt_modify")
	private Date gmtModify;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getFleetId() {
		return fleetId;
	}

	public void setFleetId(Long fleetId) {
		this.fleetId = fleetId;
	}

	public String getAttachType() {
		return attachType;
	}

	public void setAttachType(String attachType) {
		this.attachType = attachType;
	}

	public String getAttachKey() {
		return attachKey;
	}

	public void setAttachKey(String attachKey) {
		this.attachKey = attachKey;
	}

	public String getAttachStyle() {
		return attachStyle;
	}

	public void setAttachStyle(String attachStyle) {
		this.attachStyle = attachStyle;
	}

	public String getAttachName() {
		return attachName;
	}

	public void setAttachName(String attachName) {
		this.attachName = attachName;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModify() {
		return gmtModify;
	}

	public void setGmtModify(Date gmtModify) {
		this.gmtModify = gmtModify;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "FleetLicenseAttach{" +
			", id=" + id +
			", fleetId=" + fleetId +
			", attachType=" + attachType +
			", attachKey=" + attachKey +
			", attachStyle=" + attachStyle +
			", attachName=" + attachName +
			", creator=" + creator +
			", tenantId=" + tenantId +
			", isDelete=" + isDelete +
			", gmtCreate=" + gmtCreate +
			", gmtModify=" + gmtModify +
			"}";
	}
}
